import Member from "@/views/member";
import Category from "@/views/member/category";
import List from "@/views/member/list";
import Add from "@/views/member/addCategory";


const memberRoutes = [{
    path: "member",
    component: Member,
    redirect: "member/category",
    //嵌套路由
    children: [
        {
            path: "category",
            component: Category
        },
        {
            path: "list",
            component: List
        },
        {
            path: "add",
            component: Add
        }
    ]
}]

export default memberRoutes